package com.globallogic.javatrainings.sergiiivanov.model;

import java.io.Serializable;

/**
 * Application major malfunctions cause <b>UniversityFailure</b><br>
 * Typically, this exception is thrown up to top level and means that
 * application could not live anymore.<br>
 * In rare cases this exception is caught and functionality is restored with
 * minor loss<br>
 * Example: <code>Personnel.removeRoom(Room)</code> - it is not important, if
 * room was removed or not in the logic of the application
 * 
 * @author Sergey
 * 
 */
public class UniversityFailure extends UniversityException implements Serializable {
    private static final long serialVersionUID = 1L;

    /**
     * <i>Application major malfunctions cause <b>UniversityFailure</b><br>
     * Typically, this exception is thrown up to top level and means that
     * application could not live anymore.<br>
     * </i>
     * 
     * Logs problem
     */
    public UniversityFailure() {
        super();
    }

    /**
     * <i>Application major malfunctions cause <b>UniversityFailure</b><br>
     * Typically, this exception is thrown up to top level and means that
     * application could not live anymore.<br>
     * </i>
     * 
     * Logs problem with provided message
     * 
     * @param message
     *            problem description
     */
    public UniversityFailure(String message) {
        super(message);
    }
}
